package com.ruoyi.common.utils;

import com.ruoyi.common.constant.CacheConstants;
import com.ruoyi.common.core.domain.entity.SysDictData;
import org.springframework.cache.Cache;

import java.util.List;
import java.util.concurrent.TimeUnit;

public class CardReaderStatusUtil {




    //设置状态
    public static void setCardReaderDeviceStatus(String deviceSerialNumber,Long status ) {
        CacheUtils.put(CacheConstants.CARD_READER_DEVICE_STATUS_KEY,deviceSerialNumber, status,1, TimeUnit.HOURS);
    }

    public static Long getCardReaderDeviceStatus(String deviceSerialNumber) {
        return CacheUtils.get(CacheConstants.CARD_READER_DEVICE_STATUS_KEY,deviceSerialNumber, Long.class);
    }


}
